package server.maps

import client.MapleClient
import server.life.AbstractLoadedMapleLife
import tools.packet.AndroidPacket

/**
 * 免责声明：本模拟器源代码下载自ragezone.com，仅用于技术研究学习，无任何商业行为。
 */
class MapleAndroidObj(id: Int) : AbstractLoadedMapleLife(id) {

    var info: MapleAndroidInfo? = null
    val exterior = HashMap<Short, Int>()


    override fun getType(): MapleMapObjectType {
        return MapleMapObjectType.ANDROID
    }

    override fun sendSpawnData(client: MapleClient?) {
//        client?.announce(AndroidPacket.spawnAndroid(client.player, this))
    }

    override fun sendDestroyData(client: MapleClient?) {
        client?.announce(AndroidPacket.deactivateAndroid(id))
    }
}

data class MapleAndroidInfo @JvmOverloads constructor(
        val uniqueID: Long,
        var templateID: Int = 0,
        var skin: Int = 0,
        var hair: Int = 0,
        var face: Int = 0,
        var name: String = "",
        var gender: Byte = 0
)